package com.daiyang.campus_lucky_draw.contreller.param;

import com.daiyang.campus_lucky_draw.common.enums.UserIdentityEnum;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
@Data
public class UserRegisterParam implements Serializable {
    /**
     * ⽤⼾姓名
     */
    @NotBlank(message = "⽤⼾姓名不能为空！")
    private String name;
    /**
     * ⽤⼾邮箱
     */
    @NotBlank(message = "⽤⼾邮箱不能为空！")
    private String mail;
    /**
     * ⽤⼾电话号码
     */
    @NotBlank(message = "⽤⼾电话号码不能为空！")
    private String phoneNumber;
    /**
     * 登录密码
     * 普通⽤⼾不设置密码
     */
    private String password;
    /**
     * ⾝份
     * @see UserIdentityEnum#name()
     */
    private String identity = UserIdentityEnum.NORMAL.name();
}
